package com.flute.haflute.jobbox.child;

import java.rmi.RemoteException;
import java.util.List;

import com.flute.haflute.jobbox.communication.messages.MessageBase;

/**
 * 子节点通用接口
 */
public class CommonService4Child {
	/** TaskTraker的句柄 */
	private static TaskTracker tracker = TaskTracker.getInstance();

	/** 通知TaskTracker处理消息 */
	public static void notifyTracker(List<MessageBase> messages)
			throws RemoteException {
		tracker.doNotify(messages);
	}

	/** 通知TaskTracker处理消息 */
	public static void notifyTracker(MessageBase message)
			throws RemoteException {
		tracker.doNotify(message);
	}
}
